/**
 * 
 */

/**
 * @author Administrator
 *
 */
public class Course6743 implements Comparable<Course6743> {

  private String no;//课程编号
  private String name;//课程名称
  private String term;//开课学期
  private int credit;//学分
  private int score;//成绩
   
  public Course6743() {
    super();
  }

  public Course6743(String no,String name, String term, int credit, int score) {
    super();
    this.no=no;
    this.name = name;
    this.term = term;
    this.credit = credit;
    this.score = score;
  }
  public String getNo() {
    return no;
  }

  public void setNo(String no) {
    this.no = no;
  }
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getTerm() {
    return term;
  }

  public void setTerm(String term) {
    this.term = term;
  }

  public int getCredit() {
    return credit;
  }

  public void setCredit(int credit) {
    this.credit = credit;
  }

  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  @Override
  public int compareTo(Course6743 c) {
    //支持自然排序
    //排序规则：按成绩降序
    return c.getScore()-this.getScore();
  }

  @Override
  public String toString() {
	  return String.format("%s %-10s\t%2s,%d,%d",no,name,term,credit,score);

  }
}


